$inputData = @()
while ($true) {
    Write-Host "Enter data (or type 'q' to finish): "
    $inputData += Read-Host "pls enter data"
    if ($inputData[-1] -eq 'Q') {
        break
    }
}

for ($currentNum = 0; $currentNum -lt $inputData.length; $currentNum++) {
    # Write-Host $inputData[$currentNum]
    $outStr = "current input Data is the value of # " + ($currentNum+1) + ", value is " + $inputData[$currentNum]
    Write-Host $outStr
}

